﻿public static class Global {
    public static bool IsNullOrWhiteSpace(this string str) {
        bool result = true;
        if (str != null) {
            str = str.Trim();
            result = str.Length > 0;
        }
        return result;
    }
}